<?php $this->load->view('header'); ?>
<?php $this->load->view('menus'); ?>

<form class="feedbackform" action="<?=site_url('project/attach/department/'.$this->project_id);?>" method="post">

<div class="fieldwrapper">
	<label for="description" class="styled">Department</label>
	<div class="thefield">
	<select name="department_id">
		<? foreach( $this->Departments->fetch_all() as $department ) { ?>
		<option value="<?=$department->department_id?>"><?=$department->name?></option>
		<? } ?>
	</select>
</div>
</div>

<div class="buttonsdiv">
	<input type="submit" name="submit" value="Attach department" style="margin-left: 150px;" /> 
	</div>


</form>
<?php $this->load->view('footer'); ?>
